package com.yizhuoyan.his.webapi.controller.pharmacyoperator.vo;

import com.yizhuoyan.his.entity.DocHerbalPrescriptionDetailEntity;
import lombok.Data;

@Data
public class DocHerbalPrescriptionDetailVo {
    private Long id;
    /**
     * 草药处方ID
     */
    private Long herbalprescriptionId;
    /**
     * 药品ID
     */
    private Long drugId;
    /**
     * 用量
     */
    private String dosage;
    /**
     * 药品单价
     */
    private Double price;
    /**
     * 脚注
     */
    private String footnote;
    public static  DocHerbalPrescriptionDetailVo of(DocHerbalPrescriptionDetailEntity entity) {
        DocHerbalPrescriptionDetailVo vo = new DocHerbalPrescriptionDetailVo();
        vo.setId(entity.getId());
        vo.setHerbalprescriptionId(entity.getHerbalprescriptionId());
        vo.setDrugId(entity.getDrugId());
        vo.setDosage(entity.getDosage());
        vo.setPrice(entity.getPrice());
        vo.setFootnote(entity.getFootnote());
        return  vo;
    }
}
